<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <meta http-equiv=content-type content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="{$smarty.const.CSS_URL}head.css"/>
</head>
<body>
<div class="head">
    <div class="headlogo">
        <a href="{$smarty.const.__CONTROLLER__}/index" target="_top">
            <img src="{$smarty.const.IMG_URL}/headlogo.png"/>
        </a>
    </div>
    <form action="{$smarty.const.__SELF__}" method="post" target="_top">
        <!--表单的target是在action后面写没错-->
        <div class="form-text">
            <input class="searchtext" type="text" name="word"/>
            <input type="hidden" name="ok" value="1"/>
        </div>
        <div class="form-sub">
            <!--value=0相当于空，所以会出问题的。-->
            <input class="search" type="submit" value=""
                   style="background: url('{$smarty.const.IMG_URL}/ic_search.png');"
                   onmouseover="this.style.background='url({$smarty.const.IMG_URL}/ic_search2.png )'"
                   onmouseout="this.style.background='url({$smarty.const.IMG_URL}/ic_search.png )'"/>
        </div>
    </form>
    <div class="find">
        <a href="{$smarty.const.__CONTROLLER__}/index2" target="_top">
            <div class="find_ico">
                <img src="{$smarty.const.IMG_URL}/ic_find.png"
                     onmouseover="this.src='{$smarty.const.IMG_URL}/ic_find2.png' "
                     onmouseout="this.src='{$smarty.const.IMG_URL}/ic_find.png' "/>
            </div>
        </a>
    </div>
    <div class="index">
        <a href="{$smarty.const.__CONTROLLER__}/index" target="_top">
            <div class="index_ico">
                <img src="{$smarty.const.IMG_URL}/ic_index.png"
                     onmouseover="this.src='{$smarty.const.IMG_URL}/ic_index2.png' "
                     onmouseout="this.src='{$smarty.const.IMG_URL}/ic_index.png' "/>
            </div>
        </a>
    </div>
    <div class="username">
        <a href="{$smarty.const.__MODULE__}/home/home" target=_top>
            <div class="user_ico">
                <img src="{$smarty.const.IMG_URL}/ic_self.png"
                     onmouseover="this.src='{$smarty.const.IMG_URL}/ic_self2.png' "
                     onmouseout="this.src='{$smarty.const.IMG_URL}/ic_self.png' "/>
            </div>
            <div class="head_user">
                {$smarty.session.username}
            </div>
        </a>
    </div>
    <div class="loginout">
        <a onclick="if (confirm('确定要退出吗？')) return true; else return false;"
           href="{$smarty.const.__MODULE__}/User/logout" target=_top>
            <div class="head_out">
                注销
            </div>
        </a>
    </div>
</div>
</body>
</html>